*** Settings ***
Library    Selenium2Library
Library    Screenshot
Resource    ../Locator/01_登录页面定位信息.resource

*** Variables ***
${服务器地址}   https://mail.qq.com/
${账号}    your_qq    
${密码}    your_password

*** Keywords ***
打开QQ邮箱并登录

    Open Browser    ${服务器地址}   Chrome
    Maximize Browser Window
    Select Frame    ${登录_QQ登录}
    Select Frame    ${登录_QQ登录_2}
    Click Element    ${登录_QQ登录_密码登录}
    Wait Until Element Is Enabled    ${登录_QQ登录_账号输入框}    20
    Input Text    ${登录_QQ登录_账号输入框}    ${账号}
    Input Password    ${登录_QQ登录_密码输入框}    ${密码}    
    Click Element    ${登录_QQ登录_登录按钮 }        
    Unselect Frame
    Unselect Frame
    Wait Until Page Contains    邮箱首页    30
    
关闭QQ邮箱
    Close All Browsers



